package actividades;

import world.trainer.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;

public class StartActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_activity);
	}

	public boolean onTouchEvent(MotionEvent event) {
		int accion = event.getAction();
		switch (accion) {
		case MotionEvent.ACTION_DOWN: // Al pulsar la pantalla
			
			finish();
			Intent intent = new Intent(this, LogueoActivity.class);
			intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
			startActivity(intent);
			break;
		}
		return true;
	}
	public void onPause() {

		finish();
		super.onPause();
	}
}
